package org.openapi.task;

import org.openapi.domain.ApiExchange;
import org.openapi.service.IApiLoaderService;
import org.openapi.service.IDbService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 数据接口任务
 */
@Component
public class ExchangeTask {

    @Autowired
    private IApiLoaderService apiLoaderService;
    @Autowired
    private IDbService dbService;

    public void run(String uri){
        ApiExchange apiExchange = apiLoaderService.getExchange(uri);
        run(apiExchange);
    }

    public void run(Long id){

    }

    public void run(ApiExchange apiExchange){

    }
}
